{% extends "main_face_base.html" %}

{% block styles %}
	<link rel="stylesheet" href="static/face.css" type="text/css"/>
	<link rel="stylesheet" href="static/catalogue.css" type="text/css"/>
{% endblock %}

{% block content_block_left %}
	<div>&nbsp;</div>
{% endblock %}

{% block document_title %}HOME - Каталог{% endblock %}

{% block title_center %}<p>Каталог</p>{% endblock %}

{% block title_right %}<div>&nbsp;</div>{% endblock %}

{% block content_block_center %}
	<div id="catalogue_container">
		<table>
			<tbody>
				<tr>
					<th>Жанр</th>
					<th>Название</th>
					<th>Автор</th>
				</tr>
				{% for work in works %}
				<tr>
					<td>{% if work.genre %}{{work.genre}}{% else %}&nbsp;{% endif %}</td>
					<td><a href="table?view={{work.id}}">{{work.title}}</a></td>
					<td><a href="cabinet?view={{work.author.id}}">{{work.signature}}</a></td>
				</tr>
				{% endfor %}
			</tbody>
		</table>
	</div>
{% endblock %}

{% block content_right %}
	<div id="body_right">&nbsp;</div>
{% endblock %}
